﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace WLYT.Domain.Entries
{
    ///<summary>
    ///报警信息
    ///</summary>
    [Tenant("db2")]
    [SplitTable(SplitType.Season)]
    [SugarTable("WarnLog_{year}{month}{day}")]
    public partial class WarnLog
    {
           public WarnLog(){

            this.Type =Convert.ToInt32("0");
            this.Name =Convert.ToString("");
            this.ErrorCode =Convert.ToString("");
            this.Message =Convert.ToString("");
            this.StationCode =Convert.ToString("");
            this.AndonCode =Convert.ToString("");
            this.CreateTime =DateTime.Now;

           }
           /// <summary>
           /// Desc:类型
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Type {get;set;}

           /// <summary>
           /// Desc:设备名称
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Name {get;set;}

           /// <summary>
           /// Desc:错误编码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string ErrorCode {get;set;}

           /// <summary>
           /// Desc:报警信息
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Message {get;set;}

           /// <summary>
           /// Desc:工位号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string StationCode {get;set;}

           /// <summary>
           /// Desc:Andon编码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string AndonCode {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:DateTime.Now
           /// Nullable:False
           /// </summary>     
           [SplitField]
           public DateTime CreateTime {get;set;}

    }
}
